﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using ProjControleDAL;
using ProjControleModelos;
namespace ProjControleBLL
{
   public class Servicos_VendaBLL
    {
       Servicos_VendaDAL objDAL;
       public Servicos_VendaBLL()
       {
       }
        #region Métodos
       public void inserir(Servicos_Venda objPV)
       {
           try
           {
               objDAL = new Servicos_VendaDAL();
               objDAL.inserir(objPV);
           }
           catch (Exception ex)
           {

               throw ex;
           }
           objDAL = null;
       }
       public void excluirTodos(Venda objV)
       {
           try
           {
               objDAL = new Servicos_VendaDAL();
               objDAL.excluirTodos(objV);
           }
           catch (Exception ex)
           {

               throw ex;
           }
           objDAL = null;
       }
       public DataTable localizar(Venda objV)
       {
           DataTable tab;
           try
           {
               objDAL = new Servicos_VendaDAL();
               tab = objDAL.localizar(objV);
           }
           catch (Exception ex)
           {

               throw ex;
           }
           objDAL = null;
           return tab;
       }
        #endregion
    }
}
